import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 试驾车转常规车查询


// 列表查询 /ttVsTestDirveChange/listQuery
export const queryList = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirveChange/listQuery`, params)


// 详情  /ttVsTestDirveChange/selectOne
export const queryById = (id) => axios.get(`${SERVER.RETAIL}/ttVsTestDirveChange/selectOne?id=${id}`)


// 导出 /ttVsTestDirveChange/excel
export const exportExcel = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirveChange/excel`, params, {
  responseType: 'blob'
})

// 审核日志  /ttVsTestDirveChange/queryAuditLog
export const queryAuditLog = (id) => axios.get(`${SERVER.RETAIL}/ttVsTestDirveChange/queryAuditLog?id=${id}`)

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
